package com.koron.bean.workflow;

import com.koron.bean.base.Response;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author jzp
 * @since 2022/1/11
 */
public interface WorkflowPluginController {

    String submitter = "submitter";
    String handler = "handler";

    /**
     * 自动过滤
     * 点击工作流提交的时候，业务需要编写此过滤器，返回过滤后的人员信息
     */
    @PostMapping(submitter)
    Response<List<WorkflowUser>> submitter(@RequestBody SubmitterParam submitterParam);

    /**
     * 选人组件过滤
     * 点击选人组件时，业务需要编写此过滤器，返回过滤后的人员信息
     */
    @PostMapping(handler)
    Response<List<WorkflowUser>> handler(@RequestBody SubmitterParam submitterParam);

}
